package com.lovo.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lovo.system.dto.SaleDetailsDto;
import com.lovo.system.mapper.SaleDetailsMapper;
import com.lovo.system.service.ISaleDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SaleDetailsServiceImpl extends ServiceImpl<SaleDetailsMapper, SaleDetailsDto> implements ISaleDetailsService {

    @Autowired
    SaleDetailsMapper saleDetailsMapper;

    @Override
    public List<SaleDetailsDto> info(int fkId) {
        return saleDetailsMapper.info(fkId);
    }

    @Override
    public void insertSaleDetails(SaleDetailsDto saleDetailsDto) {
        saleDetailsMapper.insert(saleDetailsDto);
    }

}
